using System.Collections.Generic;

namespace Entities
{
    public class EMeter : EBase
    {
        #region - Properties -

        public EPole Pole {get;set;}
        public List<ELookUp> Notes {get;set;}
        public double Latitude { get; set; }
        public double Longitude { get; set; }
        public string Number {get; set;}
        public string Comments {get; set;}
        public EImage Image { get; set; }
        public bool ValidPosition
        {
            get
            {
                return !((Latitude.Equals(0) || Latitude.Equals(double.MinValue)) &&
                         (Longitude.Equals(0) || Longitude.Equals(double.MinValue)));
            }
        }

        #endregion

        #region - Constructor -

        public EMeter ()
        {
            Latitude = 0;
            Longitude = 0;
            Number = string.Empty;
            Comments = string.Empty;
            Notes = new List<ELookUp>();
        }

        #endregion
    }
}